//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_create_boxnet.sqf"
#include "x_setup.sqf"

private ["_box", "_unit", "_boxcargo"];
PARAMS_2(_pos,_unit);
_box = objNull;
_box = GVAR(the_box) createVehicleLocal _pos;
_box setPos _pos;
player reveal _box;
_box allowDamage false;
// TYRGHEN
// // _box addAction [(localize "STR_DOM_MISSIONSTRING_300") call FUNC(BlueText), {_this call FUNC(save_layoutgear)}];
// // _box addAction [(localize "STR_DOM_MISSIONSTRING_301") call FUNC(BlueText), {_this call FUNC(clear_layoutgear)}];
// _boxcargo = GV(_unit,GVAR(boxcargo));
// __TRACE_1("","_boxcargo");
// if (isNil "_boxcargo") then {
	// [_box] call FUNC(weaponcargo);
// } else {
	// [_box, _boxcargo] call FUNC(fillDropedBox);
	// _unit setVariable [QGVAR(boxcargo), nil];
// };

//TYRGHEN
[_box] call FUNC(init_boxNet);